object MapDemo {
  def main(args: Array[String]): Unit = {
    var clubInfo = Map(
      "编程社" -> (35, "技术"),
      "文学社" -> (28, "文化"),
      "篮球社" -> (42, "体育")
    )

    val codingClub = clubInfo("编程社")
    println(s"编程社：成员${codingClub._1}人,类型${codingClub._2}")

    clubInfo = clubInfo + ("篮球社" -> (45, "体育"))

    println("\n所有社团信息：")
    for ((name,(count,typ)) <- clubInfo) {
      println(s"$name: $count 人, $typ 类")
    }
  }
}
//11.1113【动手练习 3】: 用 Map 存储社团详细信息